<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>子代选择器</title>

    <style>
        div>p{
            color: aquamarine;
        }
    </style>
</head>
<body>
    <div>
        <p>大家好</p>
        <ul>
            <p>我很好</p>
            <li>列表</li>
            <li>列表</li>
            <li>列表</li>
            <li>列表</li>
        </ul>
        <p>我也是</p>
    </div>
</body>
</html>